package app

import (
	"net/http"

	"charging_pile/common/result"

	"charging_pile/user/internal/logic/app"
	"charging_pile/user/internal/svc"
)

func GetWalletHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := app.NewGetWalletLogic(r.Context(), svcCtx)
		resp, err := l.GetWallet()
		result.HttpResult(r, w, resp, err)
	}
}
